const navList = require("../../assets/nav")

Page({
	data: {
		bannerList: [],
		navList: navList
	},
	onLoad() {
		this.getBannerList();
	},
	getBannerList() {
		wx.request({
			url: 'http://121.89.205.189:3000/api/banner/list',
			method: "GET",
			data: {},
			header: {
				'content-type': 'application/json'
			},
			success: (res) => {
				this.setData({
					bannerList: res.data.data
				})
			}
		})
	}
})